/*
 * serialport_events.h
 *
 *  Created on: 2021年2月19日
 *      Author: taoyu
 */

#ifndef SERIALPORT_SERIALPORT_EVENTS_H_
#define SERIALPORT_SERIALPORT_EVENTS_H_

#include "framework_types.h"
#include "serialport_userconfig.h"

// a byte is received
extern int serialportEvent_dataByteReceived_IRQ(SERIAL_PORT_CHANNEL channel, uint8 data);

// rx idle is detected
extern int serialportEvent_busIdleDetected_IRQ(SERIAL_PORT_CHANNEL channel);

// a byte is sent
extern int serialportEvent_sendBufferEmpty_IRQ(SERIAL_PORT_CHANNEL channel);

#endif /* SERIALPORT_SERIALPORT_EVENTS_H_ */
